﻿using EasyCore.Domain.Entities;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyAdmin.Domain.Entities.Systems
{
    /// <summary>
    /// 角色菜单
    /// </summary>
    [SugarTable("sys_role_menu")]
    public class SysRoleMenu:AuditedEntity
    {/// <summary>
     /// 唯一标识
     /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, IsNullable = false, ColumnDescription = "唯一标识")]
        public long Id { get; set; }
        /// <summary>
        /// 角色唯一标识
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "角色唯一标识")]
        public long RoleId { get; set; }

        /// <summary>
        /// 菜单唯一标识
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "菜单唯一标识")]
        public long MenuId { get; set; }

        /// <summary>
        /// 当前页面的操作按钮列表
        /// </summary>
        [SugarColumn(IsJson = true, ColumnDataType = "NVARCHAR(200)",ColumnDescription ="操作按钮列表")]
        public List<long> Operations { get; set; }
    }
}
